import axios from '@/utils/http.js'

// 获取墙列表
export const getWallListAPI = () => axios.get('/admin/wall')
// 修改墙的标题
export const updateWallSloganAPI = (data) => axios.patch('/admin/wall/slogan', data)

// 获取标签列表
export const getLabelListAPI = (params) => axios.get('/admin/label', { params })
// 删除标签
export const deleteLabelAPI = (ids) => axios.delete('/admin/label', { data: { ids } })
// 添加标签
export const addLabelAPI = (data) => axios.post('/admin/label', data)
// 修改标签
export const updateLabelAPI = (data) => axios.patch('/admin/label', data)

// 获取颜色列表
export const getColorListAPI = (params) => axios.get('/admin/color', { params })
// 删除颜色
export const deleteColorAPI = (ids) => axios.delete('/admin/color', { data: { ids } })
// 添加颜色
export const addColorAPI = (data) => axios.post('/admin/color', data)
// 修改颜色
export const updateColorAPI = (data) => axios.patch('/admin/color', data)
